package org.apache.ocean.main.database;

import java.util.ArrayList;

/**
 *
 * @author jasonr
 */
public class SQLParameters extends ArrayList<SQLParameter> {
  
  public SQLParameters(int size) {
    super(size);
  }
  
  public SQLParameters(SQLParameter parameter) {
    add(parameter);
  }
  
  public SQLParameters(Object... array) {
    for (int x=0; x < array.length; x=x+2) {
      Object object = array[x];
      Integer sqltype = (Integer)array[x+1];
      add(object, sqltype);
    }
  }
  
  public void add(Object object, int sqltype) {
    add(new SQLParameter(object, sqltype));
  }
}
